import { createStore, combineReducers, subscribe } from "redux";
import { reducera } from "./reducerA";
import { reducerb } from "./reducerB";

const todoApp = combineReducers({
  reducera,
  reducerb
});

export const store = createStore(todoApp);

store.subscribe(() => console.log(store.getState()));
